package com.macro.mall.demo.controller;

import com.macro.mall.common.api.CommonResult;

import com.macro.mall.demo.service.EsDocumentService;
import com.macro.mall.model.AddressData;
import com.macro.mall.model.OrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@Slf4j
public class EsDocumentController {


    @Autowired
    private EsDocumentService esDocumentService;




    /**
     * 查询
     */
    @PostMapping("/SelBoot")
    public CommonResult<HashMap<String,Object>> selBoot(@Validated  @RequestBody OrderInfo orderInfo) {
        CommonResult<HashMap<String,Object>> list = esDocumentService.selBoot(orderInfo);
        return list;
    }











}
